import {NgModule} from '@angular/core';
import {Routes, RouterModule} from "@angular/router";
import {GoodsTicketListComponent} from "@goods/goods-ticket/goods-ticket-list/goods-ticket-list.component";
import {GoodsTicketDetailComponent} from "@goods/goods-ticket/goods-ticket-detail/goods-ticket-detail.component";
import {GoodsTicketOrderComponent} from "@goods/goods-ticket/goods-ticket-order/goods-ticket-order.component";
import {GoodsCheckLogisticsComponent} from "@goods/goods-ticket/goods-check-logistics/goods-check-logistics.component";
import {GoodsTicketInfoComponent} from "@goods/goods-ticket/goods-ticket-info/goods-ticket-info.component";
import {GoodsTicketServiceComponent} from "@goods/goods-ticket/goods-ticket-service/goods-ticket-service.component";
import {GoodsTicketFaqComponent} from "@goods/goods-ticket/goods-ticket-faq/goods-ticket-faq.component";
import {GoodsDetailsResolver} from "@goods/goods-detail/goods-detail.resolver";
import {GoodsListComponent} from "@goods/goods-list/goods-list.component";
import {GoodsDetailComponent} from "@goods/goods-detail/goods-detail.component";


export const routes: Routes = [
  {
    path: '',
    component: GoodsTicketListComponent,
  },
  {
    path: 'ticket-order',
    component: GoodsTicketOrderComponent
  },
  {
    path: 'ticket-info',
    component: GoodsTicketInfoComponent
  },
  {
    path: 'check-logistics',
    component: GoodsCheckLogisticsComponent
  },
  {
    path: 'ticket-service',
    component: GoodsTicketServiceComponent
  },
  {
    path: 'faq/:code',
    component: GoodsTicketFaqComponent,
  },
  {
    path: ':goodsCode',
    component: GoodsTicketDetailComponent,
  },
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})
export class GoodsTicketRoutingModule {
}
